package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavourMapper {
    void insertBench(List<DishFlavor> flavors);
@Delete("delete from sky_take_out.dish_flavor where sky_take_out.dish_flavor.dish_id=#{Dishid}")
    void deleteByDishId(Long id);
@Select("select name from sky_take_out.dish_flavor where dish_id = #{id}")
List<DishFlavor> getByid(Long id);
}
